package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("租赁方案创建参数")
public class LeasingSchemeCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "leaseType参数缺失")
    @ApiModelProperty(value = "租赁类型:1、月 2、周 3、日   服务类型配置，用于线上下单使用，每种租赁模式最多配置3个方案*")
    private Integer leaseType;
    private Long spuId;

    @NotNull(message = "monthlyRent参数缺失")
    @ApiModelProperty(value = "月租")
    private BigDecimal monthlyRent;

    @NotNull(message = "weeklyRent参数缺失")
    @ApiModelProperty(value = "周租")
    private BigDecimal weeklyRent;

    @NotNull(message = "dayRant参数缺失")
    @ApiModelProperty(value = "日租")
    private BigDecimal dayRant;

    /**
     * 详细方案
     */
    @NotNull(message = "租赁详细方案参数缺失")
    private List<LeasingSchemeDetailsCreateValidate> schemeDetails;

}
